// 充电模块相关API
import request from '@/api/request'

// 获取充电站列表
export function getChargeStationList(params) {
    return request('/charge/charge/wxpage', 'get', params)
}

// 创建预支付订单
export function createPrepayOrder(params) {
    return request('/charge/cchargepaymentorder/newOrder', 'post', params)
}

// 获取我的订单页面数据
export function getMyOrderPage(params) {
    return request('/charge/cchargepaymentorder/myOrderPage', 'get', params)
}

// 获取订单状态
export function getOrderStatus(id) {
    return request('/charge/cchargepaymentorder/', 'get', { id })
}

// 我的车牌列表（固定 page=1, rows=100）
export function getMyCarList() {
    return request('/charge/cduserbindcar/myCarList', 'get', { page: 1, rows: 100 })
}

// 获取充电站详情
export function getStationDetail(params) {
    return request('/charge/charge/wxStationDetail', 'get', params)
}

// 获取场站价格详情
export function getStationFeeDetail(params) {
    return request('/charge/charge/getStationFeeDetail', 'post', params)
}

// 启动充电前详情（根据二维码）
export function getStationStartCharegDetail(data) {
    return request('/charge/charge/getStationStartCharegDetail', 'post', data)
}

// 新增：停车费详情（根据场站ID）
export function getStationParkFeeDetail(data) {
    return request('/charge/charge/getStationParkFeeDetail', 'post', data)
}

// 新增：查询充电状态
export function queryChargeStatus(data) {
    return request('/charge/charge/queryChargeStatus', 'post', data)
}

// 新增：结束充电接口
export function requestStopCharge(params) {
    return request('/charge/cchargepaymentorder/requestStopCharge', 'get', params)
}

// 新增：查询充电订单接口
export function queryChargeOrder(data) {
    return request('/charge/charge/queryChargeOrder', 'post', data)
}

// 新增：获取我的充电订单列表接口
export function getMyChargeOrderList(params) {
    return request('/charge/cchargepaymentorder/myChargeOrderList', 'get', params)
}

// 新增：查询充电订单详情接口
export function chargingOrderDetails(params) {
    return request('/charge/cchargepaymentorder/chargingOrderDetails', 'get', params)
}

// 获取餐厅列表
export function getRestaurantList(data) {
    return request('/operations/mpCommon/getRestaurantList', 'get', data)
} 